import commonLayout from '@/layout/admin/common';
export default [{
	path: "train-library",
	name: "training",
	meta: {
		title: "在线学习"
	},
	redirect: "/admin/train-library/training-library",
	component: commonLayout,
	children: [{
		path: "training-library",
		name: "trainingLibrary",
		meta: {
			title: "课程列表"
		},
		component: () => import("@/views/admin/training/index")
	}, {
		path: "training-library/:id",
		name: "trainingLibraryManage",
		meta: {
			title: "培训资源管理"
		},
		redirect: "/admin/train-library/training-library/:id/baseinfo",
		component: () => import("@/views/admin/training/manage/index"),
		children: [{
				path: "baseinfo",
				name: "trainingLibraryManageBaseinfo",
				meta: {
					title: "基本信息"
				},
				component: () => import("@/views/admin/training/manage/baseinfo/index")
			}, {
				path: "chapter",
				name: "trainingLibraryManageChapter",
				meta: {
					title: "章节管理"
				},
				component: () => import("@/views/admin/training/manage/chapter/index")
			},
			{
				path: "attachment",
				name: "trainingLibraryManageAttachment",
				meta: {
					title: "素材附件管理"
				},
				component: () => import("@/views/admin/training/manage/attachment/index")
			}, {
				path: "student",
				name: "trainingLibraryManageStudent",
				meta: {
					title: "学员管理"
				},
				component: () => import("@/views/admin/training/manage/student/index")
			},
		]
	}]
}]